﻿#region

using System;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;

#endregion

namespace BuildMotion.Framework.Logging
{
    public static class ExceptionLogger
    {
        public static bool Log(Exception exception, string policyName)
        {
            return ExceptionPolicy.HandleException(exception, policyName);
        }

        public static bool Log(Exception exception, string policyName, out Exception exceptionToThrow)
        {
            return ExceptionPolicy.HandleException(exception, policyName, out exceptionToThrow);
        }
    }
}